﻿<!DOCTYPE html>
<html lang="da">
<head>
    <title>@ViewBag.Title</title>
    <!--[if gt IE 9]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <![endif]-->
    <meta name="viewport" content="width=device-width, minimum-scale=0.6, initial-scale=0.8, maximum-scale=1">
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <link rel="apple-touch-icon" href="~/Content/Icons/ios7/Icon-40.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="~/Content/Icons/ios7/Icon-72.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="~/Content/Icons/ios7/Icon@2x.png" />
    @Styles.Render("~/Content/bootstrap")
    @Styles.Render("~/Content/css")
</head>
<body>
    <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="~/">the cup</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li class="dropdown">
                        <a href="" class="dropdown-toggle" data-toggle="dropdown" accesskey="s"><u>s</u>tillinger <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="~/List/WorldRanking">verdensranglisten</a></li>
                            <li><a href="~/List/Trophy/">pokallisten</a></li>
                            <li><a href="~/Matchplay/Season/0">matchplay</a></li>
                            <li><a href="~/List/Eclectic">eclectic</a></li>
                            <li><a href="~/List/EclecticNetto">eclectic netto</a></li>
                            <li><a href="~/List/EclecticStableford">eclectic stableford</a></li>
                            <li><a href="~/List/EclecticWorst">eclectic worst</a></li>
                            <li><a href="~/List/BestTenRounds">bedste 10 runder</a></li>
                            <li><a href="~/List/OrderOfMerit">order of merit</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="" class="dropdown-toggle" data-toggle="dropdown">events <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="~/Event/Create">nyt event</a></li>
                            <li><a href="~/Event/Index">gamle events</a></li>
                        </ul>
                    </li>

                    <li class="dropdown">
                        <a href="" class="dropdown-toggle" data-toggle="dropdown">nyheder <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="~/Blog/">alle nyheder</a></li>
                            <li><a href="~/Blog/Create">ny artikel</a></li>
                        </ul>
                    </li>

                    <li><a href="~/Player/">spillere</a></li>

                    <li class="dropdown">
                        <a href="" class="dropdown-toggle" data-toggle="dropdown" accesskey="c">s<u>c</u>ores <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="~/Round/">se alle scorekort</a></li>
                            <li><a href="~/Round/MyRounds">mine runder</a></li>
                            <li><a href="~/Round/Create">indberet scorekort</a></li>
                            <li><a href="~/Matchplay/Create">indberet matchplay</a></li>
                        </ul>
                    </li>
                    @if (User.Identity.IsAuthenticated)
                    {
                        <li class="dropdown">
                            <a href="" class="dropdown-toggle" data-toggle="dropdown">@User.Identity.Name<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="~/Player/Edit">ret profil</a></li>
                                <li><a href="~/Account/Manage">skift password / log ud</a></li>
                                @if (User.IsInRole("Admin"))
                                {
                                    <li class="divider"></li>
                                    <li class="dropdown-header">administration</li>
                                    <li><a href="~/Course">baner</a></li>
                                    <li><a href="~/Account">brugerkonti</a></li>
                                    <li><a href="~/Comment">kommentarer</a></li>
                                }
                            </ul>
                        </li>
                    }
                    else
                    {
                        <li><a href="~/Account/Login">login</a></li>
                    }
                    <li><a href="~/Home/About">om os</a></li>
                </ul>
            </div>
        </div>
    </div>
    
    <div class="container">
        @RenderSection("featured", required: false)
        @RenderBody()
    </div>

    <div id="footer" class="footer hidden-xs">
        <div class="container text-center">
            <p class="text-muted credit">
                Copyright &copy; 2005-@DateTime.Now.Year -
                <a href="http://www.facebook.com/pages/The-Cup/89729247279">
                    thecup <img src="~/Content/Images/facebook.jpg?v=1" height="15" width="15" alt="facebook" />
                </a>
            </p>
            <p class="text-muted credit">
                Dette website er den officielle website for The Cup. Alle rettigheder forbeholdes.
                Ingen kommerciel reproduktion, tilpasning, distribution eller udsendelse af hele
                eller dele af denne website eller anden information på denne side er tilladt uden
                forudgående skriftelig tilladelse fra The Cup. Framing af denne website eller dele
                af denne eller spejling af denne website på andre servere, er ikke tilladt.
            </p>
        </div>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/moment")
    @Scripts.Render("~/bundles/moment-da")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/misc")
    @RenderSection("Scripts", required: false)

    <!-- No Analytics on localhost -->
    @if (!HttpContext.Current.Request.IsLocal)
    {
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date(); a = s.createElement(o),
                m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', 'UA-25154913-1', 'auto');
            ga('send', 'pageview');

        </script>
    }
    @*//@StackExchange.Profiling.MiniProfiler.RenderIncludes()*@
</body>
</html>
